package com.lvmama.rhino.mapperComment;

import com.lvmama.rhino.pojo.comment.entity.ProductCommentDetail;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * Created by hejing on 2017/9/20.
 */
public interface ProductCommentDetailMapper {

    List<ProductCommentDetail> selectGoodViewpoint(@Param("productId") Long productId, @Param("beginDate") String beginDate,
                                                   @Param("endDate") String endDate, @Param("categoryId") String categoryId);

    List<ProductCommentDetail> selectBadViewpoint(@Param("productId") Long productId, @Param("beginDate") String beginDate,
                                                  @Param("endDate") String endDate, @Param("categoryId") String categoryId);

    List<ProductCommentDetail> selectAllViewpoint(@Param("flag") Integer flag);
}
